//
//  JpMD5Util.h
//  yiyong
//
//  Created by apple on 15-4-20.
//  Copyright (c) 2015年 wangjinping. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CommonCrypto/CommonDigest.h>

#define FileHashDefaultChunkSizeForReadingData 1024*8
#define CC_MD5_DIGEST_LENGTH 16

@interface JpMD5Util : NSObject
//计算NSData 的MD5值
+(NSString*)getMD5WithData:(NSData*)data;

//计算字符串的MD5值，
+(NSString*)getmd5WithString:(NSString*)string;

//计算大文件的MD5值
+(NSString*)getFileMD5WithPath:(NSString*)path;


NSString *md5WithData(NSData *data);
NSString *md5WithString(NSString *string);
NSString *md5WithFilePath(NSString *path);

@end
